package com.maschinenstuermer.profiler.transform;

import org.ow2.util.asm.ClassVisitor;
import org.ow2.util.asm.ClassWriter;

public class JdbcClassTransformer extends ClassTransfomerTemplate {

	@Override
	protected ClassVisitor createClassVisitor(final String className,
			final ClassWriter classWriter) {
		return new JdbcClassAdapter(classWriter);
	}

	@Override
	@SuppressWarnings("unchecked")
	public boolean apply(final Class input) {
		return implementsAnInterface(input, JdbcTracingConstants.INTERFACES);
	}
}
